from typing import Sequence
import pandas as pd
from pandas.plotting import register_matplotlib_converters
import numpy as np
import matplotlib.pyplot as plt


# filename='d:\\py\\data\\hot-dog-places.csv'
filename='hot-dog-places.csv'
# "G:\file\学校\可视化\大作业\COVID-19\COVID-19-Data-master\US\County_level_summary\US_County_summary_covid19_confirmed.csv"
reader= pd.read_csv(filename)
    
x=reader['Year']
y1=reader['A']
y2=reader['B']
y3=reader['C']

# plt.bar(x,y1,align="center",color="b")
# plt.bar(x,y2,align="center",color="y")
# plt.bar(x,y3,align="center",color="m")

plt.bar(x,y1,align="center",color="#CCFFFF")
plt.bar(x,y2,align="center",color="#FFFF00")
plt.bar(x,y3,align="center",color="#CC99FF")


plt.legend()
# plt.title('2000-2010年热狗大胃王比赛成绩堆积柱状图',family ='kaiti',size=20, color ='g',loc='center')
plt.title('2000-2010年热狗大胃王比赛成绩堆积柱状图',family ='kaiti',size=20, color ='#666699',loc='center')

save_path="2000-2010年热狗大胃王比赛成绩堆积柱状图.jpg"
# save_path="d:\\py\\2000-2010年热狗大胃王比赛成绩堆积柱状"
plt.savefig(save_path)


plt.show()

